﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Isuka.Excel.Dynamic;
using Isuka.Auxiliaries;
using Isuka.Excel;

namespace isuka.samples.excel01
{
    public class SampleDataModel : XRowToModelBase, ISampleDataModel
    {
        public SampleDataModel(XWorksheet sheet, DynamicRow row)
            : base(sheet, row)
        { }

        [XRowToModelProperty(0)]
        public string ID
        {
            get { return GetValue<string>(() => this.ID); }
            set { SetValue(() => this.ID, value); }
        }

        [XRowToModelProperty(1)]
        public string 名前
        {
            get { return GetValue<string>(() => this.名前); }
            set { SetValue(() => this.名前, value); }
        }

        [XRowToModelProperty(2)]
        public int 年齢
        {
            get { return GetValue<int>(() => this.年齢); }
            set { SetValue(() => this.年齢, value); }
        }
    }

}
